/**
 * 配置
 * */
package org.zmhhxl.sample3.oauth2.a.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.oauth2.core.oidc.user.OidcUser;
import org.zmhhxl.sample3.oauth2.a.authentications.model.CustomOidcUser;

import java.util.function.Consumer;

@Slf4j
public final class OidcUserRepositoryHandler implements Consumer<OidcUser>{

//   @Autowired
//   private  IOauth2ThirdAccountService thirdAccountService;

   @Override public void accept(OidcUser oidcUser) {
      log.info("第三方登录成功6 OidcUser sssss {}", oidcUser.getUserInfo());
      if (oidcUser instanceof CustomOidcUser){
         //CustomOidcUser oidcUser1 = (CustomOidcUser) oidcUser;

      }
   }
}
